import { useRef } from 'react';
/**
 * 实时读取 value 值变更，避免 useCallback 等缓存影响
 * @param value
 * @returns
 */
var useRealtimeRef = function useRealtimeRef(value) {
  var ref = useRef(value);
  ref.current = value;
  return ref;
};
export default useRealtimeRef;